<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<title>编辑栏目管理</title>
		<meta name="decorator" content="default"/>
		<script type="text/javascript">
			$(function() {
				//初始化表单验证
				$("#inputForm").initValidform();
			});
		</script>
	</head>
	
	<body class="mainbody">
		<form:form id="inputForm" modelAttribute="category" action="${ctx}/cms/category/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<sys:message content="${message}"/>
			
			<!--导航栏-->
			<div class="location">
				<a href="${ctx}/cms/category/list" class="back"><i></i><span>返回列表页</span></a>
				<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> 
				<i class="arrow"></i> 
				<a href="${ctx}/cms/category/"><span>栏目管理</span></a>
				<shiro:hasPermission name="cms:category:edit"><i class="arrow"></i><span>${not empty category.id ? '修改':'添加' }栏目管理</span></shiro:hasPermission>
			</div>	
			<div class="line10"></div>
			<!--/导航栏-->
	
			<!--内容-->
			<div id="floatHead" class="content-tab-wrap">
				<div class="content-tab">
					<div class="content-tab-ul-wrap">
						<ul>
							<li><a class="selected" href="javascript:;">栏目管理信息</a></li>
						</ul>
					</div>
				</div>
			</div>
	
			<div class="tab-content">
				<dl>
					<dt>父级栏目</dt>
					<dd>
						<div class="rule-single-select single-select">
						    <form:select path="parent.id" class="required" cssClass="input normal" datatype="*" nullmsg="请选择父级栏目" errormsg="请选择父级栏目"  sucmsg=" ">
							    <form:option value="0"  label="请选择父级栏目" />
	                            <form:options items="${parentList}"  itemValue="id" itemLabel="name"/>						    
						    </form:select>
							<span class="Validform_checktip">*请输入父级编号</span>
						</div>
					</dd>
				</dl>
				<dl>
					<dt>名称</dt>
					<dd>
						<form:input path="name" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入名称" errormsg="请输入名称" sucmsg=" "/>
						<span class="Validform_checktip">*请输入名称</span>
					</dd>
				</dl>
				<dl>
					<dt>类别标题</dt>
					<dd>
						<form:input path="title" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入类别标题" errormsg="请输入类别标题" sucmsg=" "/>
						<span class="Validform_checktip">*请输入类别标题</span>
					</dd>
				</dl>
				<dl>
					<dt>URL跳转地址</dt>
					<dd>
						<form:input path="linkUrl" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入URL跳转地址" errormsg="请输入URL跳转地址" sucmsg=" "/>
						<span class="Validform_checktip">*请输入URL跳转地址</span>
					</dd>
				</dl>
				<dl>
					<dt>图片地址</dt>
					<dd>
						<form:input path="imgUrl" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入图片地址" errormsg="请输入图片地址" sucmsg=" "/>
						<span class="Validform_checktip">*请输入图片地址</span>
					</dd>
				</dl>
				<dl>
					<dt>备注说明</dt>
					<dd>
						<form:input path="content" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入备注说明" errormsg="请输入备注说明" sucmsg=" "/>
						<span class="Validform_checktip">*请输入备注说明</span>
					</dd>
				</dl>
				<dl>
					<dt>SEO标题</dt>
					<dd>
						<form:input path="seoTitle" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入SEO标题" errormsg="请输入SEO标题" sucmsg=" "/>
						<span class="Validform_checktip">*请输入SEO标题</span>
					</dd>
				</dl>
				<dl>
					<dt>SEO关健字</dt>
					<dd>
						<form:input path="seoKeywords" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入SEO关健字" errormsg="请输入SEO关健字" sucmsg=" "/>
						<span class="Validform_checktip">*请输入SEO关健字</span>
					</dd>
				</dl>
				<dl>
					<dt>SEO描述</dt>
					<dd>
						<form:input path="seoDescription" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入SEO描述" errormsg="请输入SEO描述" sucmsg=" "/>
						<span class="Validform_checktip">*请输入SEO描述</span>
					</dd>
				</dl>
			</div>
			<!--/内容-->
	
			<!--工具栏-->
			<div class="page-footer">
				<div class="btn-wrap">
					<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn" /> 
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
				</div>
			</div>
			<!--/工具栏-->
		</form:form>
	</body>
</html>

